import request from '@/utils/request'

// 查询标准化考核专业评分列表
export function listInspectionMajorresult(query) {
  return request({
    url: '/workSafetyStandardization/InspectionMajorresult/list',
    method: 'get',
    params: query
  })
}

// 查询标准化考核专业评分详细
export function getInspectionMajorresult(majorResultId) {
  return request({
    url: '/workSafetyStandardization/InspectionMajorresult/' + majorResultId,
    method: 'get'
  })
}

// 新增标准化考核专业评分
export function addInspectionMajorresult(data) {
  return request({
    url: '/workSafetyStandardization/InspectionMajorresult',
    method: 'post',
    data: data
  })
}

// 修改标准化考核专业评分
export function updateInspectionMajorresult(data) {
  return request({
    url: '/workSafetyStandardization/InspectionMajorresult',
    method: 'put',
    data: data
  })
}

// 删除标准化考核专业评分
export function delInspectionMajorresult(majorResultId) {
  return request({
    url: '/workSafetyStandardization/InspectionMajorresult/' + majorResultId,
    method: 'delete'
  })
}
